package cn.zwx.search.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.elasticsearch.search.sort.SortOrder;

/**
 * @description 排序字段
 * @author zhangwenxue
 * @createTime 2020/10/23 18:01
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Sort {
    /**
     * @description 排序字段名称
     **/
    private String field;

    /**
     * @description A sorting order.
     **/
    private SortOrder order;

}
